<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<meta name="viewport" content="width=device-width, initial-scale=1">
		<title>vue 实例</title>
		<script src="js/vue.js"></script>
	</head>
	<body>
		<div id="root">{{ message }}
		
		<item></item>
		</div>
		
	</body>
	<script type="text/javascript">
		Vue.component('item',{
			template: '<div>123123</div>'
		})
		var vm = new Vue({
			el: '#root',
			data: {
				message: "hello"
			}
		})
	</script>
</html>